<template>
  <avue-form :option="option"></avue-form>
</template>

<script setup>
import { ref } from "vue";
import { ElMessage } from "element-plus";

const option = ref({
  column: [
    {
      label: "创建",
      prop: "select",
      type: "select",
      allowCreate: true,
      multiple: true,
      filterable: true,
      removeTag: value => {
        ElMessage.success(`已删除: ${value}`);
        return true;
      },
      dicData: [
        {
          label: "字典1",
          value: 0,
        },
        {
          label: "字典2",
          value: 1,
        },
      ],
    },
  ],
});
</script>
